<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <!-- <a class="navbar-brand" href="#">Stukdo</a> -->
      <%= link_to "<i class='fa fa-paw'></i> Stukdo".html_safe, root_path, class: "navbar-brand"%>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"></li>
        <li></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
      <% if !current_user %>
        <li><%= link_to "关于", about_path %></li>
       <li><%= link_to "<i class='fa fa-sign-in'></i>登录".html_safe, new_user_session_path %></a></li>
        <% else %>
        <li><%= link_to "任务", tasks_path%></li>
        <li><%= link_to "设定", edit_user_registration_path%>
        <li><%= link_to "<i class='fa fa-sign-out'></i>退出".html_safe, destroy_user_session_path, method: :delete%>
        <% end%>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>